package ids.dev.persistence;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Named;
import javax.inject.Singleton;

import ids.dev.model.SysUser;
import ids.dev.util.GenericDAO;

@Named
@Singleton
public class SysUserDAO extends GenericDAO<SysUser>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public SysUserDAO() {
		super(SysUser.class);
	}
	 
	@Override
	public void save(SysUser entity) {
		super.save(entity);
	}
	
	@Override
	public void delete(List<Object> id, Class<SysUser> classe) {
		super.delete(id, classe);
	}
	
	
	@Override
	public SysUser find(int entityID) {
		super.beginTransaction();
		SysUser sysUser =  super.find(entityID);
		super.closeTransaction();
		return sysUser;
	}
}
